<%@ page language="java" import="java.util.*,com.deryun.tyl.bean.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>江北区市民服务中心</title>
<%@ include file="/WEB-INF/views/layout/public_css.jsp"%>
<%@ include file="/WEB-INF/views/layout/public_js.jsp"%>

<style type="text/css">
	.big-box {
	 border:1px solid #ddd;
	 height:350px;
	 margin-bottom: 10px;
	 padding:10px;
	}
	.login-box {
		border:1px solid #ddd;
		height:210px;
	 	margin-bottom: 10px;
	 	padding:10px;
	}
	.news-box {
		border:1px solid #ddd;
		height:240px;
	 	margin-bottom: 10px;
	 	padding:10px;
	}
	.blue-box {
	 	height:35px;
	 	margin-bottom: 10px;
	 	padding:5px 5px 5px 30px;
	 	background-color: #B6EDFF;
	 	font-size: 16px;
	}
	.zc-table>tbody>tr>td {
		border-bottom: 1px solid #ddd;
	}
</style>
</head>
<body>
<%@ include file="/WEB-INF/views/layout/head.jsp"%>
<div class="container-fluid">
	<div class="row">
	  <div class="col-md-8">
	  	<div class="big-box">
		  	<h4 >政策法规</h4>
		  	<hr style="margin-top: 0px;border-top: 2px solid #eee;">
		  	<div class="row">
		    	<div class="col-md-5" style="height:280px">
		    		<div id="carousel-example-generic0" class="carousel slide" data-ride="carousel" style="height:240px">
					  <!-- Indicators -->
					  <ol class="carousel-indicators">
					    <li data-target="#carousel-example-generic0" data-slide-to="0" class="active"></li>
					    <li data-target="#carousel-example-generic0" data-slide-to="1"></li>
					    <li data-target="#carousel-example-generic0" data-slide-to="2"></li>
					  </ol>
					
					  <div class="carousel-inner" role="listbox">
					 	<c:forEach items="${images}" var="pol">
						 	<c:if test="${pol.plate == '政策法规' && pol.picPosition == '1' }"> 
							    <div class="item active">
							      <a href="${pol.address}"> <img src="${ctx}/${pol.picName}" alt="..." style="height:240px"></a>
							      <div class="carousel-caption">
							      </div>
							    </div>
						    </c:if>
						    <c:if test="${pol.plate == '政策法规' && pol.picPosition == '2' }"> 
							    <div class="item">
							      <a href="${pol.address}"> <img src="${ctx}/${pol.picName}" alt="..." style="height:240px"></a>
							      <div class="carousel-caption">
							      </div>
							    </div>
						    </c:if>
						    <c:if test="${pol.plate == '政策法规' && pol.picPosition == '3' }"> 
							    <div class="item">
							      <a href="${pol.address}"> <img src="${ctx}/${pol.picName}" alt="..." style="height:240px"></a>
							      <div class="carousel-caption">
							      </div>
							    </div>
						    </c:if>
					    </c:forEach>
					  </div>
					
					  <!-- Controls -->
					  <a class="left carousel-control" href="#carousel-example-generic0" role="button" data-slide="prev">
					    <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
					    <span class="sr-only">Previous</span>
					  </a>
					  <a class="right carousel-control" href="#carousel-example-generic0" role="button" data-slide="next">
					    <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
					    <span class="sr-only">Next</span>
					  </a>
					</div>
					<p class="text-center">政策法规</p>
		    	</div>
		    	<div class="col-md-7">
		    	    <div class="row">
		    	    	<div class="btn-group col-md-8" data-toggle="buttons">
						  <label class="btn btn-default active" onClick="changeTable(1)">
						    <input type="radio" name="options" id="option1" autocomplete="off" checked>国家级
						  </label>
						  <label class="btn btn-default" onClick="changeTable(2)">
						    <input type="radio" name="options" id="option2" autocomplete="off"> 省市级
						  </label>
						  <label class="btn btn-default" onClick="changeTable(3)">
						    <input type="radio" name="options" id="option3" autocomplete="off">区县级
						  </label>
						   <label class="btn btn-default" onClick="changeTable(4)">
						    <input type="radio" name="options" id="option3" autocomplete="off">街道级
						  </label>
						</div>
						<div class="col-md-4">
							<a href="<%=basePath%>/civil/getCMByPlate?plate=政策法规"><button type="button" class="btn btn-default">更多>></button></a>
						</div>
		    	    </div>
		    	    <script type="text/javascript">
		    	    	$(document).ready(function() 
		    	    	{
		    	    		$("#about02").hide();
			    	    	$("#about03").hide();
			    	    	$("#about04").hide();
			    	    	$("#zcfgTable02").hide();
			    	    	$("#zcfgTable03").hide();
			    	    	$("#cgggTable02").hide();
			    	    	$("#cgggTable03").hide();
			    	    	$("#cgjgggTable02").hide();
			    	    	$("#cgjgggTable03").hide();
		    	    	})
		    	    	function changeTable(i)
		    	    	{
		    	    		if(i == 1)
		    	    		{
		    	    			$("#about01").show();
		    	    			$("#about02").hide();
				    	    	$("#about03").hide();
				    	    	$("#about04").hide();
		    	    		}	
		    	    		else if(i == 2)
		    	    		{
		    	    			$("#about01").hide();
		    	    			$("#about02").show();
				    	    	$("#about03").hide();
				    	    	$("#about04").hide();
		    	    		}
		    	    		else if(i == 3)
		    	    		{
		    	    			$("#about01").hide();
		    	    			$("#about02").hide();
				    	    	$("#about03").show();
				    	    	$("#about04").hide();
		    	    		}
		    	    		else
		    	    		{
		    	    			$("#about01").hide();
		    	    			$("#about02").hide();
				    	    	$("#about03").hide();
				    	    	$("#about04").show();
		    	    		}	
		    	    	}
		    	    </script>
		    	   	<table class="table nav-table zc-table about01" id="about01" name="about01">
						<col width="70%"></col>
						<col width="30%"></col>
						<c:if test="${empty message}">							
							<tr>
						  		<td></td>
						  		<td></td>
							</tr>
						</c:if>
						<c:if test="${not empty message}">
							<c:forEach items="${message}" var="pol"> 
						
								<c:if test="${pol.plate == '政策法规' && pol.grade == '国家级'}">
									<tr>
								  		<td><a href="${ctx}/civil/getCM?id=${pol.id}">${pol.title} </a></td>
								  		<td>${pol.createTime}</td>
									</tr>
								</c:if>
							</c:forEach>
						</c:if>
				   </table>
				   <table class="table nav-table zc-table about02" id="about02" name="about02">
					  	<col width="70%"></col>
					 	<col width="30%"></col>
						<c:if test="${empty message}">							
							<tr>
						  		<td></td>
						  		<td></td>
							</tr>
						</c:if>
						<c:if test="${not empty message}">
							<c:forEach items="${message}" var="pol"> 
						
								<c:if test="${pol.plate == '政策法规' && pol.grade == '省市级'}">
									<tr>
								  		<td><a href="${ctx}/civil/getCM?id=${pol.id}">${pol.title} </a></td>
								  		<td>${pol.createTime}</td>
									</tr>
								</c:if>
							</c:forEach>
						</c:if>
				   </table>
				   <table class="table nav-table zc-table about03" id="about03" name="about03">
					  <col width="70%"></col>
					  <col width="30%"></col>
						<c:if test="${empty message}">							
							<tr>
						  		<td></td>
						  		<td></td>
							</tr>
						</c:if>
						<c:if test="${not empty message}">
							<c:forEach items="${message}" var="pol"> 
						
								<c:if test="${pol.plate == '政策法规' && pol.grade == '区县级'}">
									<tr>
								  		<td><a href="${ctx}/civil/getCM?id=${pol.id}">${pol.title} </a></td>
								  		<td>${pol.createTime}</td>
									</tr>
								</c:if>
							</c:forEach>
						</c:if>
				   </table>
				   
				  	<table class="table nav-table zc-table about03" id="about04" name="about04">
					  <col width="70%"></col>
					  <col width="30%"></col>
						<c:if test="${empty message}">							
							<tr>
						  		<td></td>
						  		<td></td>
							</tr>
						</c:if>
						<c:if test="${not empty message}">
							<c:forEach items="${message}" var="pol"> 
						
								<c:if test="${pol.plate == '政策法规' && pol.grade == '街道级'}">
									<tr>
								  		<td><a href="${ctx}/civil/getCM?id=${pol.id}">${pol.title} </a></td>
								  		<td>${pol.createTime}</td>
									</tr>
								</c:if>
							</c:forEach>
						</c:if>
				   </table>
		    	</div>
	    	</div>
	  	</div>
	  	<div class="big-box">
		  	<h4 >标准规范</h4>
		  	<hr style="margin-top: 0px;border-top: 2px solid #eee;">
		  	<div class="row">
		    	<div class="col-md-5" style="height:280px">
		    		<div id="carousel-example-generic1" class="carousel slide" data-ride="carousel" style="height:240px">
					  <!-- Indicators -->
					  <ol class="carousel-indicators">
					    <li data-target="#carousel-example-generic1" data-slide-to="0" class="active"></li>
					    <li data-target="#carousel-example-generic1" data-slide-to="1"></li>
					    <li data-target="#carousel-example-generic1" data-slide-to="2"></li>
					  </ol>
					
					  <!-- Wrapper for slides -->
					  <div class="carousel-inner" role="listbox">
					    <c:forEach items="${images}" var="pol">
						 	<c:if test="${pol.plate == '标准规范' && pol.picPosition == '1' }"> 
							    <div class="item active">
							      <a href="${pol.address}"> <img src="${ctx}/${pol.picName}" alt="..." style="height:240px"></a>
							      <div class="carousel-caption">
							      </div>
							    </div>
						    </c:if>
						    <c:if test="${pol.plate == '标准规范' && pol.picPosition == '2' }"> 
							    <div class="item">
							      <a href="${pol.address}"> <img src="${ctx}/${pol.picName}" alt="..." style="height:240px"></a>
							      <div class="carousel-caption">
							      </div>
							    </div>
						    </c:if>
						    <c:if test="${pol.plate == '标准规范' && pol.picPosition == '3' }"> 
							    <div class="item">
							      <a href="${pol.address}"> <img src="${ctx}/${pol.picName}" alt="..." style="height:240px"></a>
							      <div class="carousel-caption">
							      </div>
							    </div>
						    </c:if>
					    </c:forEach>
					  </div>
					
					  <!-- Controls -->
					  <a class="left carousel-control" href="#carousel-example-generic1" role="button" data-slide="prev">
					    <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
					    <span class="sr-only">Previous</span>
					  </a>
					  <a class="right carousel-control" href="#carousel-example-generic1" role="button" data-slide="next">
					    <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
					    <span class="sr-only">Next</span>
					  </a>
					</div>
					<p class="text-center">标准规范</p>
		    	</div>
		    	<div class="col-md-7">
		    	    <div class="row">
		    	    	<div class="btn-group col-md-8" data-toggle="buttons">
						  <label class="btn btn-default"  onClick="changeTableBzgf(1)">
						    <input type="radio" name="options" id="option1" autocomplete="off" >省市级
						  </label>
						  <label class="btn btn-default"  onClick="changeTableBzgf(2)">
						    <input type="radio" name="options" id="option2" autocomplete="off"> 区县级
						  </label>
						  <label class="btn btn-default"  onClick="changeTableBzgf(3)">
						    <input type="radio" name="options" id="option3" autocomplete="off"> 街道级
						  </label>
						</div>
						<div class="col-md-4">
							<a href="<%=basePath%>/civil/getCMByPlate?plate=标准规范"><button type="button" class="btn btn-default">更多>></button></a>
						</div>
		    	    </div>
		    	    
					<script type="text/javascript">
		    	    	function changeTableBzgf(i)
		    	    	{
		    	    		if(i == 1)
		    	    		{
		    	    			$("#zcfgTable01").show();
		    	    			$("#zcfgTable02").hide();
				    	    	$("#zcfgTable03").hide();
				    	   
		    	    		}	
		    	    		else if(i == 2)
		    	    		{
		    	    			$("#zcfgTable01").hide();
		    	    			$("#zcfgTable02").show();
				    	    	$("#zcfgTable03").hide();
				    	    
		    	    		}
		    	    		else
		    	    		{
		    	    			$("#zcfgTable01").hide();
		    	    			$("#zcfgTable02").hide();
				    	    	$("#zcfgTable03").show();
		
		    	    		}	
		    	    	}
		    	    </script>
					<table class="table nav-table zc-table"  id="zcfgTable01" name="zcfgTable01">
						<col width="70%"></col>
						<col width="30%"></col>
						<c:if test="${empty message}">							
							<tr>
						  		<td></td>
						  		<td></td>
							</tr>
						</c:if>
						<c:if test="${not empty message}">
							<c:forEach items="${message}" var="pol"> 
								<c:if test="${pol.plate == '标准规范' && pol.grade == '省市级'}">
									<tr>
								  		<td><a href="${ctx}/civil/getCM?id=${pol.id}">${pol.title} </a></td>
								  		<td>${pol.createTime}</td>
									</tr>
								</c:if>
							</c:forEach>
						</c:if>
				   	</table>
				   	<table class="table nav-table zc-table"  id="zcfgTable02" name="zcfgTable02">
						<col width="70%"></col>
						<col width="30%"></col>
						<c:if test="${empty message}">							
							<tr>
						  		<td></td>
						  		<td></td>
							</tr>
						</c:if>
						<c:if test="${not empty message}">
							<c:forEach items="${message}" var="pol"> 
								<c:if test="${pol.plate == '标准规范' && pol.grade == '区县级'}">
									<tr>
								  		<td><a href="${ctx}/civil/getCM?id=${pol.id}">${pol.title} </a></td>
								  		<td>${pol.createTime}</td>
									</tr>
								</c:if>
							</c:forEach>
						</c:if>
				   	</table>
				   	<table class="table nav-table zc-table"  id="zcfgTable03" name="zcfgTable03">
						<col width="70%"></col>
						<col width="30%"></col>
						<c:if test="${empty message}">							
							<tr>
						  		<td></td>
						  		<td></td>
							</tr>
						</c:if>
						<c:if test="${not empty message}">
							<c:forEach items="${message}" var="pol"> 
								<c:if test="${pol.plate == '标准规范' && pol.grade == '街道级'}">
									<tr>
								  		<td><a href="${ctx}/civil/getCM?id=${pol.id}">${pol.title} </a></td>
								  		<td>${pol.createTime}</td>
									</tr>
								</c:if>
							</c:forEach>
						</c:if>
				   	</table>
		    	</div>
	    	</div>
	  	</div>
	  </div>
	  <div class="col-md-4">
	  	<div class="login-box">
	  		<h4 >快速登录</h4>
		  	<hr style="margin-top: 0px; margin-bottom: 10px; border-top: 2px solid #eee;">
		  	
		  	  <form class="bs-example bs-example-form" role="form" action="<%=basePath%>user/doLogin" method="post">
		        <div class="input-group">
		            <span class="input-group-addon">用户名：</span>
		            <input type="text" id="username" name="username" class="form-control">
		        </div>
		        <br>
		        <div class="input-group">
		            <span class="input-group-addon">密&nbsp;&nbsp;&nbsp;&nbsp;码：</span>
		            <input type="password" id="password" name="password" class="form-control" >
		        </div>
		         <br>
		         <div class="input-group input-group-lg" style="padding-left:35%;width:100%">	
						<button type="submit" class="btn btn-primary" style="width:48%"> 登陆</button>		
						<a href="<%=basePath%>civil/register"><button type="button" class="btn btn-warning" style="width:48%"> 注册</button></a>  	
		        </div>
		    </form>
		   
	  	</div>
	  	
	  	<div class="news-box">
	  		<div class="row">
	  			<div class="col-md-8"><h4 >专题新闻</h4></div>
	  			<div class="col-md-4"><a href="<%=basePath%>/civil/getCMByPlate?plate=专题新闻"><button type="button" class="btn btn-default">更多>></button></a></div>
	  		</div>
		  	<hr style="margin-top: 0px;margin-bottom: 10px;border-top: 2px solid #eee;">
            <div id="carousel-example-generic" class="carousel slide" data-ride="carousel" style="height:150px">
			  <!-- Indicators -->
			  <ol class="carousel-indicators">
			    <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
			    <li data-target="#carousel-example-generic" data-slide-to="1"></li>
			    <li data-target="#carousel-example-generic" data-slide-to="2"></li>
			  </ol>
			
			  <!-- Wrapper for slides -->
			  <div class="carousel-inner" role="listbox">
			    <c:forEach items="${images}" var="pol">
				 	<c:if test="${pol.plate == '专题新闻' && pol.picPosition == '1' }"> 
					    <div class="item active">
					      <a href="${pol.address}"> <img src="${ctx}/${pol.picName}" alt="..." style="height:150px"></a>
					      <div class="carousel-caption">
					      </div>
					    </div>
				    </c:if>
				    <c:if test="${pol.plate == '专题新闻' && pol.picPosition == '2' }"> 
					    <div class="item">
					      <a href="${pol.address}"> <img src="${ctx}/${pol.picName}" alt="..." style="height:150px"></a>
					      <div class="carousel-caption">
					      </div>
					    </div>
				    </c:if>
				    <c:if test="${pol.plate == '专题新闻' && pol.picPosition == '3' }"> 
					    <div class="item">
					      <a href="${pol.address}"> <img src="${ctx}/${pol.picName}" alt="..." style="height:150px"></a>
					      <div class="carousel-caption">
					      </div>
					    </div>
				    </c:if>
			    </c:forEach>
			  </div>
			
			  <!-- Controls -->
			  <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
			    <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
			    <span class="sr-only">Previous</span>
			  </a>
			  <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
			    <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
			    <span class="sr-only">Next</span>
			  </a>
			</div>
			<p class="text-center">专题新闻</p>
	  	</div>
	  	
	  	<div class="news-box">
	  		<div class="row">
	  			<div class="col-md-8"><h4 >产品/服务提供商</h4></div>
	  			<div class="col-md-4"><a href="${ctx}/civil/getAllUser"><button type="button" class="btn btn-default">更多>></button></a></div>
	  		</div>
		  	<hr style="margin-top: 0px;margin-bottom: 10px;border-top: 2px solid #eee;">
			<table class="table nav-table zc-table">
				<%
				List<User> suppliers = (List<User>) request.getAttribute("supplier");
				for(User p: suppliers)
				{
				 %>
		            <tr><td><%=p.getInstitutionName() %></td></tr>
		         <%
						}
				 %>
				
			</table>
	  	</div>
	  	
	  </div><!-- col-md-4-end -->
	</div><!-- row-end -->
	
	
		<div class="big-box row">
	   	    <div class="col-md-6">
		      <h4>采购公告</h4>
			<hr style="margin-top: 0px; border-top: 2px solid #eee;">
			<div class="row">
				<div class="col-md-5" style="height: 280px">
					<div id="carousel-example-generic-0" class="carousel slide"
						data-ride="carousel" style="height: 240px">
						<!-- Indicators -->
						<ol class="carousel-indicators">
							<li data-target="#carousel-example-generic-0" data-slide-to="0" class="active"></li>
							<li data-target="#carousel-example-generic-0" data-slide-to="1"></li>
							<li data-target="#carousel-example-generic-0" data-slide-to="2"></li>
						</ol>

						<!-- Wrapper for slides -->
						<div class="carousel-inner" role="listbox">
							<c:forEach items="${images}" var="pol">
							 	<c:if test="${pol.plate == '采购公告' && pol.picPosition == '1' }"> 
								    <div class="item active">
								      <a href="${pol.address}"> <img src="${ctx}/${pol.picName}" alt="..." style="height:240px"></a>
								      <div class="carousel-caption">
								      </div>
								    </div>
							    </c:if>
							    <c:if test="${pol.plate == '采购公告' && pol.picPosition == '2' }"> 
								    <div class="item">
								      <a href="${pol.address}"> <img src="${ctx}/${pol.picName}" alt="..." style="height:240px"></a>
								      <div class="carousel-caption">
								      </div>
								    </div>
							    </c:if>
							    <c:if test="${pol.plate == '采购公告' && pol.picPosition == '3' }"> 
								    <div class="item">
								      <a href="${pol.address}"> <img src="${ctx}/${pol.picName}" alt="..." style="height:240px"></a>
								      <div class="carousel-caption">
								      </div>
								    </div>
							    </c:if>
						    </c:forEach>
						</div>

						<!-- Controls -->
						<a class="left carousel-control" href="#carousel-example-generic-0" role="button" data-slide="prev"> 
						<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
							<span class="sr-only">Previous</span>
						</a> <a class="right carousel-control" href="#carousel-example-generic-0" role="button" data-slide="next">
							<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> <span class="sr-only">Next</span>
						</a>
					</div>
					<p class="text-center">采购公告</p>
				</div>
				<div class="col-md-7">
					<div class="row">
						<div class="btn-group col-md-8" data-toggle="buttons">
							<label class="btn btn-default active" onClick="changeTableCggg(1)"> <input
								type="radio" name="options" id="option1" autocomplete="off"
								checked>市级
							</label> <label class="btn btn-default" onClick="changeTableCggg(2)"> <input type="radio"
								name="options" id="option2" autocomplete="off"> 区县级
							</label> <label class="btn btn-default" onClick="changeTableCggg(3)"> <input type="radio"
								name="options" id="option3" autocomplete="off">街道级
							</label>
						</div>
						<div class="col-md-4">
							<a href="<%=basePath%>/civil/getCMByPlate?plate=采购公告"><button type="button" class="btn btn-default">更多>></button></a>
						</div>
					</div>
					<script type="text/javascript">
		    	    	function changeTableCggg(i)
		    	    	{
		    	    		if(i == 1)
		    	    		{
		    	    			$("#cgggTable01").show();
		    	    			$("#cgggTable02").hide();
				    	    	$("#cgggTable03").hide();
				    	   
		    	    		}	
		    	    		else if(i == 2)
		    	    		{
		    	    			$("#cgggTable01").hide();
		    	    			$("#cgggTable02").show();
				    	    	$("#cgggTable03").hide();
				    	    
		    	    		}
		    	    		else
		    	    		{
		    	    			$("#cgggTable01").hide();
		    	    			$("#cgggTable02").hide();
				    	    	$("#cgggTable03").show();
		
		    	    		}	
		    	    	}
		    	    </script>
					<table class="table nav-table zc-table" id="cgggTable01">
						<col width="70%"></col>
						<col width="30%"></col>
						<c:if test="${empty message}">							
							<tr>
						  		<td></td>
						  		<td></td>
							</tr>
						</c:if>
						<c:if test="${not empty message}">
							<c:forEach items="${message}" var="pol"> 
								<c:if test="${pol.plate == '采购公告' && pol.grade == '省市级'}">
									<tr>
								  		<td><a href="${ctx}/civil/getCM?id=${pol.id}">${pol.title} </a></td>
								  		<td>${pol.createTime}</td>
									</tr>
								</c:if>
							</c:forEach>
						</c:if>
						
					</table>
					<table class="table nav-table zc-table" id="cgggTable02">
						<col width="70%"></col>
						<col width="30%"></col>
						<c:if test="${not empty message}">
							<c:forEach items="${message}" var="pol"> 
								<c:if test="${pol.plate == '采购公告' && pol.grade == '区县级'}">
									<tr>
								  		<td><a href="${ctx}/civil/getCM?id=${pol.id}">${pol.title} </a></td>
								  		<td>${pol.createTime}</td>
									</tr>
								</c:if>
							</c:forEach>
						</c:if>
						
					</table>
					<table class="table nav-table zc-table" id="cgggTable03">
						<col width="70%"></col>
						<col width="30%"></col>
						<c:if test="${not empty message}">
							<c:forEach items="${message}" var="pol"> 
								<c:if test="${pol.plate == '采购公告' && pol.grade == '街道级'}">
									<tr>
								  		<td><a href="${ctx}/civil/getCM?id=${pol.id}">${pol.title} </a></td>
								  		<td>${pol.createTime}</td>
									</tr>
								</c:if>
							</c:forEach>
						</c:if>
						
					</table>
				</div>
			</div>
	      	</div>
	      	<div class="col-md-6">
		      <h4>采购结果公告</h4>
			<hr style="margin-top: 0px; border-top: 2px solid #eee;">
			<div class="row">
				<div class="col-md-5" style="height: 280px">
					<div id="carousel-example-generic-1" class="carousel slide"
						data-ride="carousel" style="height: 240px">
						<!-- Indicators -->
						<ol class="carousel-indicators">
							<li data-target="#carousel-example-generic-1" data-slide-to="0"	class="active"></li>
							<li data-target="#carousel-example-generic-1" data-slide-to="1"></li>
							<li data-target="#carousel-example-generic-1" data-slide-to="2"></li>
						</ol>

						<!-- Wrapper for slides -->
						<div class="carousel-inner" role="listbox">
							<c:forEach items="${images}" var="pol">
							 	<c:if test="${pol.plate == '采购结果公告' && pol.picPosition == '1' }"> 
								    <div class="item active">
								      <a href="${pol.address}"> <img src="${ctx}/${pol.picName}" alt="..." style="height:240px"></a>
								      <div class="carousel-caption">
								      </div>
								    </div>
							    </c:if>
							    <c:if test="${pol.plate == '采购结果公告' && pol.picPosition == '2' }"> 
								    <div class="item">
								      <a href="${pol.address}"> <img src="${ctx}/${pol.picName}" alt="..." style="height:240px"></a>
								      <div class="carousel-caption">
								      </div>
								    </div>
							    </c:if>
							    <c:if test="${pol.plate == '采购结果公告' && pol.picPosition == '3' }"> 
								    <div class="item">
								      <a href="${pol.address}"> <img src="${ctx}/${pol.picName}" alt="..." style="height:240px"></a>
								      <div class="carousel-caption">
								      </div>
								    </div>
							    </c:if>
						    </c:forEach>
						</div>

						<!-- Controls -->
						<a class="left carousel-control" href="#carousel-example-generic-1"
							role="button" data-slide="prev"> <span
							class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
							<span class="sr-only">Previous</span>
						</a> <a class="right carousel-control"
							href="#carousel-example-generic-1" role="button" data-slide="next">
							<span class="glyphicon glyphicon-chevron-right"
							aria-hidden="true"></span> <span class="sr-only">Next</span>
						</a>
					</div>
					<p class="text-center">采购结果公告</p>
				</div>
				<div class="col-md-7">
					<div class="row">
						<div class="btn-group col-md-8" data-toggle="buttons">
							<label class="btn btn-default active" onClick="changeTableCgjggg(1)"> <input
								type="radio" name="options" id="option1" autocomplete="off"
								checked>市级
							</label> <label class="btn btn-default" onClick="changeTableCgjggg(2)"> <input type="radio"
								name="options" id="option2" autocomplete="off"> 区县级
							</label> <label class="btn btn-default" onClick="changeTableCgjggg(3)"> <input type="radio"
								name="options" id="option3" autocomplete="off">街道级
							</label>
						</div>
						<div class="col-md-4">
							<a href="<%=basePath%>/civil/getCMByPlate?plate=采购结果公告"><button type="button" class="btn btn-default">更多>></button></a>
						</div>
					</div>
					<script type="text/javascript">
		    	    	function changeTableCgjggg(i)
		    	    	{
		    	    		if(i == 1)
		    	    		{
		    	    			$("#cgjgggTable01").show();
		    	    			$("#cgjgggTable02").hide();
				    	    	$("#cgjgggTable03").hide();
		    	    		}	
		    	    		else if(i == 2)
		    	    		{
		    	    			$("#cgjgggTable01").hide();
		    	    			$("#cgjgggTable02").show();
				    	    	$("#cgjgggTable03").hide();
		    	    		}
		    	    		else
		    	    		{
		    	    			$("#cgjgggTable01").hide();
		    	    			$("#cgjgggTable02").hide();
				    	    	$("#cgjgggTable03").show();
		    	    		}	
		    	    	}
		    	    </script>
					<table class="table nav-table zc-table" id="cgjgggTable01">
						<col width="70%"></col>
						<col width="30%"></col>
						<c:if test="${empty message}">							
							<tr>
						  		<td></td>
						  		<td></td>
							</tr>
						</c:if>
						<c:if test="${not empty message}">
							<c:forEach items="${message}" var="pol"> 
								<c:if test="${pol.plate == '采购结果公告' && pol.grade == '省市级'}">
									<tr>
								  		<td><a href="${ctx}/civil/getCM?id=${pol.id}">${pol.title} </a></td>
								  		<td>${pol.createTime}</td>
									</tr>
								</c:if>
							</c:forEach>
						</c:if>
					</table>
					<table class="table nav-table zc-table" id="cgjgggTable02">
						<col width="70%"></col>
						<col width="30%"></col>
						<c:if test="${empty message}">							
							<tr>
						  		<td></td>
						  		<td></td>
							</tr>
						</c:if>
						<c:if test="${not empty message}">
							<c:forEach items="${message}" var="pol"> 
								<c:if test="${pol.plate == '采购结果公告' && pol.grade == '区县级'}">
									<tr>
								  		<td><a href="${ctx}/civil/getCM?id=${pol.id}">${pol.title} </a></td>
								  		<td>${pol.createTime}</td>
									</tr>
								</c:if>
							</c:forEach>
						</c:if>
					</table>
					<table class="table nav-table zc-table" id="cgjgggTable03">
						<col width="70%"></col>
						<col width="30%"></col>
						<c:if test="${empty message}">							
							<tr>
						  		<td></td>
						  		<td></td>
							</tr>
						</c:if>
						<c:if test="${not empty message}">
							<c:forEach items="${message}" var="pol"> 
								<c:if test="${pol.plate == '采购结果公告' && pol.grade == '街道级'}">
									<tr>
								  		<td><a href="${ctx}/civil/getCM?id=${pol.id}">${pol.title} </a></td>
								  		<td>${pol.createTime}</td>
									</tr>
								</c:if>
							</c:forEach>
						</c:if>
					</table>
				</div>
			</div>
	      	</div>
	  	    <div class="col-md-4"></div>
        </div>
	  	
        <div class="big-box row">
	   	    <div class="col-md-12">
		      <h4>一键通</h4>
			<hr style="margin-top: 0px; border-top: 2px solid #eee;">
			<div class="row">
				<div class="col-md-3" style="height: auto;">
					<div id="carousel-example-generics" class="carousel slide"
						data-ride="carousel" style="height: 240px">
						<!-- Indicators -->
						<ol class="carousel-indicators">
							<li data-target="#carousel-example-generics" data-slide-to="0"	class="active"></li>
							<li data-target="#carousel-example-generics" data-slide-to="1"></li>
							<li data-target="#carousel-example-generics" data-slide-to="2"></li>
						</ol>

						<!-- Wrapper for slides -->
						<div class="carousel-inner" role="listbox">
							<c:forEach items="${images}" var="pol">
							 	<c:if test="${pol.plate == '一键通新闻' && pol.picPosition == '1' }"> 
								    <div class="item active">
								      <a href="${pol.address}"> <img src="${ctx}/${pol.picName}" alt="..." style="height:240px"></a>
								      <div class="carousel-caption">
								      </div>
								    </div>
							    </c:if>
							    <c:if test="${pol.plate == '一键通新闻' && pol.picPosition == '2' }"> 
								    <div class="item">
								      <a href="${pol.address}"> <img src="${ctx}/${pol.picName}" alt="..." style="height:240px"></a>
								      <div class="carousel-caption">
								      </div>
								    </div>
							    </c:if>
							    <c:if test="${pol.plate == '一键通新闻' && pol.picPosition == '3' }"> 
								    <div class="item">
								      <a href="${pol.address}"> <img src="${ctx}/${pol.picName}" alt="..." style="height:240px"></a>
								      <div class="carousel-caption">
								      </div>
								    </div>
							    </c:if>
						    </c:forEach>
						</div>

						<!-- Controls -->
						<a class="left carousel-control" href="#carousel-example-generics"
							role="button" data-slide="prev"> <span
							class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
							<span class="sr-only">Previous</span>
						</a> <a class="right carousel-control"
							href="#carousel-example-generics" role="button" data-slide="next">
							<span class="glyphicon glyphicon-chevron-right"
							aria-hidden="true"></span> <span class="sr-only">Next</span>
						</a>
						
						
					</div>
					<p class="text-center">一键通新闻</p>
				</div>
				<div class="col-md-4">
					<div class="row" style="text-align: right;">
						<div class="col-md-12" >
							<a href="${ctx}/civil/getCMByPlate?plate=一键通快讯"><button type="button" class="btn btn-default">更多>></button></a>
						</div>
					</div>
					<table class="table nav-table zc-table">
						<col width="70%"></col>
						<col width="30%"></col>
						<c:if test="${empty message}">							
							<tr>
						  		<td></td>
						  		<td></td>
							</tr>
						</c:if>
						<c:if test="${not empty message}">
							<c:forEach items="${message}" var="pol"> 
								<c:if test="${pol.plate == '一键通快讯'}">
									<tr>
								  		<td><a href="${ctx}/civil/getCM?id=${pol.id}">${pol.title} </a></td>
								  		<td>${pol.createTime}</td>
									</tr>
								</c:if>
							</c:forEach>
						</c:if>
					</table>
				</div>
				<div class="col-md-1" >
				</div>
				<div class="news-box col-md-4" >
			  		<div class="row">
			  			<div class="col-md-8"><h4 >社区产品</h4></div>
			  			<div class="col-md-4"><a href="${ctx}/civil/getCMByPlate?plate=一键通产品"><button type="button" class="btn btn-default">更多>></button></a></div>
			  		</div>
				  	<hr style="margin-top: 0px;margin-bottom: 10px;border-top: 2px solid #eee;">
					<div class="col-md-8">
						<div class="row">
							<span style="font-size: 16px;height: 20px;">服务类>></span>
							<div class="row" style="text-align: left;padding-left: 75px;" > 
								<h5>
								<c:forEach items="${pd}" var="pol">
									<c:if test="${pol.heading == '服务类' }">
										<a href="${ctx}/civil/getCMByPlate?plate=一键通产品">${pol.productCategory}</a>
											&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
									</c:if>
								</c:forEach>
								</h5>
							</div>
						</div>
					
						<div class="row" >
							<span style="font-size: 16px;height: 20px;">工程类>></span>
							<div class="row" style="text-align: left; padding-left: 75px;"> 
								<h5>
								<c:forEach items="${pd}" var="pol">
									<c:if test="${pol.heading == '工程类' }">
										<a href="${ctx}/civil/getCMByPlate?plate=一键通产品">${pol.productCategory}</a>
											&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
									</c:if>
								</c:forEach>
								</h5>
							</div>
						</div>
							<div class="row" >
							<span style="font-size: 16px;height: 20px;">货物类>></span>
							<div class="row" style="text-align: left;padding-left: 75px;"> 
								<h5>
									<c:forEach items="${pd}" var="pol">
										<c:if test="${pol.heading == '货物类' }">
											<a href="${ctx}/civil/getCMByPlate?plate=一键通产品">${pol.productCategory}</a>
												&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
										</c:if>
									</c:forEach>
								</h5>
							</div>
						</div>
				</div>
			  	</div>
				
			</div>
	      	</div>
	  	    <div class="col-md-4"></div>
        </div><br>
        
        <h4 class="text-left">友情链接</h4>
        <hr style="margin-top: 0px; border-top: 2px solid #eee;">
        <table class="table nav-table" >
						<col width="20%"></col>
						<col width="20%"></col>
						<col width="20%"></col>
						<col width="20%"></col>
						<col width="20%"></col>
						<tr style="font-size: 16px;">
							<c:if test="${not empty fc}">
								<c:forEach items="${fc}" var="pol"> 
									<c:if test="${pol.position == '1' }">
									  <td><a href="${pol.address }">${pol.title }</a></td>
									</c:if>
									<c:if test="${pol.position == '2' }">
									  <td><a href="${pol.address }">${pol.title }</a></td>
									</c:if>
									<c:if test="${pol.position == '3' }">
									  <td><a href="${pol.address }">${pol.title }</a></td>
									</c:if>
									<c:if test="${pol.position == '4' }">
									  <td><a href="${pol.address }">${pol.title }</a></td>
									</c:if>
									<c:if test="${pol.position == '5' }">
									  <td><a href="${pol.address }">${pol.title }</a></td>
									</c:if>
								</c:forEach>
							</c:if>
						</tr>
						<tr style="font-size: 16px;">
							<c:if test="${not empty fc}">
								<c:forEach items="${fc}" var="pol"> 
									<c:if test="${pol.position == '6' }">
									  <td><a href="${pol.address }">${pol.title }</a></td>
									</c:if>
									<c:if test="${pol.position == '7' }">
									  <td><a href="${pol.address }">${pol.title }</a></td>
									</c:if>
									<c:if test="${pol.position == '8' }">
									  <td><a href="${pol.address }">${pol.title }</a></td>
									</c:if>
									<c:if test="${pol.position == '9' }">
									  <td><a href="${pol.address }">${pol.title }</a></td>
									</c:if>
									<c:if test="${pol.position == '10' }">
									  <td><a href="${pol.address }">${pol.title }</a></td>
									</c:if>
								</c:forEach>
							</c:if>
						</tr>
					</table>
</div>
</body>
</html>